package com.duanzz.mapper;

import com.duanzz.entity.Dept;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author duanzz
 * @description
 * @date 2020/11/17
 */
public interface IDeptMapper {

    @Select("select * from dept where deptno = #{deptno}")
    Dept findDeptById(Integer deptno);


    @Options()
    List<Dept> findDeptByConditionLazyLoding(Dept dept);
}
